<template>
	<div>
		<H3>自定义指令-防止表单重复提交</H3>
		<button @click="submit" v-throttle>提交</button>
	</div>

</template>

<script>
	export default {
		props: {},
		created() {
			this.init()
		},
		data() {
			return {}
		},
		methods: {
			init() {

			},
			submit() {
				setTimeout(() => {
					console.log('提交成功！')
				}, 2000)
			}
		}
	}
</script>

<style scoped>
</style>